package com.spring.mvc.controller;

import com.spring.mvc.pojo.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @version 1.0.0
 * @Date: 2022/6/16 21:55
 * @Author ZhuYouBin
 * @Description
 */
@RestController
public class RestJsonController {

    @RequestMapping("/json03")
    public Map<String, User> json01() {
        Map<String, User> map = new HashMap<>();
        map.put("json01", new User("lisi", "123456"));
        map.put("json02", new User("wangwu", "555666"));
        return map;
    }

}
